import request from '../utils/request';
import { stringify } from 'qs';
import { baseServerUrl } from '../utils/Constant';

export async function gatheringPage(params) {
  return request(`${baseServerUrl}/tms/tms-invoice/gathering-page?${stringify(params)}`, {
    method: 'GET',
  });
}

export async function gathering(params) {
  return request(`${baseServerUrl}/tms/tms-invoice/gathering`, {
    method: 'POST',
    body: params,
  });
}

export async function confirm(params) {
  return request(`${baseServerUrl}/tms/tms-invoice/confirm`, {
    method: 'POST',
    body: params,
  });
}
